package pattern.feign;

import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import pattern.dto.User;

import java.util.List;

/**
 * workService服务
 * @author Simon
 */
@FeignClient(contextId = "workServiceFeign", value = "${cloud.application.name.work-server}")
public interface WorkServiceFeign {

    /**
     * 根据用户ID发送消息
     */
    @GetMapping(value = "/search_user_by_type")
    List<User> searchUserByType(@Param("userType") String userType);
}
